import { network } from '@/utils';

import { charges } from '../../../../../config/Apis';

export async function queryCabinePlansDetail(params: { id: number }) {
  return network.get(charges.cab_tariff, { params });
}

export async function operSaveOpUpdate(params: any) {
  let reqeus: any = '';
  if (params.id) {
    reqeus = network.put(charges.cab_tariff, { data: params });
  } else {
    reqeus = network.post(charges.cab_tariff, { data: params });
  }
  return reqeus;
}
